<?php
/**
 * @fileoverview    我的专辑页翻页
 * @author          xinhua
 * @date            Feb  02 11:31:49 CST 2012
 * @copyright       sina meila
 */

include_once '../../__global.php';
include_once './scroll_public.php';
class aj_scrollCollection extends scroll_public{

    private $col_id;
    
    public function main(){

        $this->col_id=$this->input('col_id');
        $model=new ml_model_dbCollectionRe();
        $ridAndComment=$model->getListByCid($this->_uid, $this->col_id,$this->_begin,40);
        
        foreach ($ridAndComment as $value) {
            $rids[]=$value['rid'];//资源id数组
        }

        $contentModel=new ml_model_dbContent();
        $contentData=$contentModel->get_content_by_rids($rids);

        $htmlModel=new ml_biz_pinboard($contentData, $this->_uid, $this->ifme,true,$ridAndComment);
        $contentData=$htmlModel->output();
        
        $last=count($data)<ML_FEED_PAGESIZE?true:false;
        $finnal['lastSegment']=$last;
        $finnal['items']=$contentData;

        $this->api_output(ML_RCODE_SUCC,$finnal);

    }
}
new aj_scrollCollection();
?>